<jsp:useBean id="korisnik"
	type="rs.ac.uns.ftn.informatika.mbs2.e11031.etaksi.entitet.Korisnik"
	scope="session" />
<html>
<head>
<title><fmt:message key="prikazIPromenaLicnihPodataka" /></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<link href="/${initParam.nazivAplikacije}/css/tema.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript">
	function promeniPodatke() {
		document.getElementsByName('jmbg')[0].removeAttribute("readonly");
		document.getElementsByName('ime')[0].removeAttribute("readonly");
		document.getElementsByName('prezime')[0].removeAttribute("readonly");
	}

	function proveriPolja() {
		var ok = false;
		ok = jcv_isDecimalDigits(document.getElementsByName("jmbg")[0].value);
		alert('ok');
		ok = ok && validateRequired(document.getElementsByTagName("form")[0]);
		if (!ok)
			alert('<fmt:message key="popuniteIspravnoSvaPolja" />');
		return ok;
	}
</script>
<script type="text/javascript"
	src="/${initParam.nazivAplikacije}/js/org/apache/commons/validator/javascript/validateUtilities.js"></script>
<script type="text/javascript"
	src="/${initParam.nazivAplikacije}/js/org/apache/commons/validator/javascript/validateRequired.js"></script>
<script type="text/javascript"
	src="/${initParam.nazivAplikacije}/js/org/apache/commons/validator/javascript/validateMaxLength.js"></script>
</head>
<body>
	<form method="get" enctype="text/plain" accept-charset="utf-8"
		action="/${initParam.nazivAplikacije}/PromenaLicnihPodatakaKontroler">
		<table class="glavna">
			<tr>
				<td>&nbsp;</td>
				<td><input type="button"
					value='<fmt:message key="omoguciPromenu" />'
					onclick="promeniPodatke()" /></td>
			</tr>
			<tr>
				<td><fmt:message key="jmbg" />:</td>
				<td><input type="text" name="jmbg" value="${korisnik.jmbg}"
					readonly required maxlength="13" /></td>
			</tr>
			<tr>
				<td><fmt:message key="ime" />:</td>
				<td><input type="text" name="ime" value="${korisnik.ime}"
					readonly required /></td>
			</tr>
			<tr>
				<td><fmt:message key="prezime" />:</td>
				<td><input type="text" name="prezime"
					value="${korisnik.prezime}" readonly required /></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="submit"
					value='<fmt:message key="promeni" />'></td>
			</tr>
		</table>
	</form>
</body>
</html>